<?php
/**
 * Created by PhpStorm.
 * User: 异步加载
 * Date: 2018/1/2
 * Time: 16:09
 */

namespace app\api\model;


class Goods extends BaseModel
{
    /**
     * @return mixed
     * 获取上新商品
     */
    public static function getNewGoods(){
        $newgoods = self::find()->limit(4)->order('create_time', 'asc');
        return $newgoods;
    }
}